package com.mygame.Svetofor;

/**
 * Created with IntelliJ IDEA.
 * User: Andrey
 * Date: 17.03.13
 * Time: 10:14
 * To change this template use File | Settings | File Templates.
 */
public class ThemeManager {

    public static ThemeManager INSTANCE = new ThemeManager();

    private Profile currentProfile = ProfileManager.INSTANCE.getCurrentProfile();

    Integer[] imageIDs = {
       R.drawable.block_1_theme_1,
       R.drawable.block_2_theme_1,
       R.drawable.block_3_theme_1,
       R.drawable.block_1_theme_2,
       R.drawable.block_2_theme_2,
       R.drawable.block_3_theme_2,
       R.drawable.block_1_theme_3,
       R.drawable.block_2_theme_3,
       R.drawable.block_3_theme_3,
       R.drawable.block_1_theme_4,
       R.drawable.block_2_theme_4,
       R.drawable.block_3_theme_4};

    Integer[] imageSelIDs = {
       R.drawable.block_1_theme_1_s,
       R.drawable.block_2_theme_1_s,
       R.drawable.block_3_theme_1_s,
       R.drawable.block_1_theme_2_s,
       R.drawable.block_2_theme_2_s,
       R.drawable.block_3_theme_2_s,
       R.drawable.block_1_theme_3_s,
       R.drawable.block_2_theme_3_s,
       R.drawable.block_3_theme_3_s,
       R.drawable.block_1_theme_4_s,
       R.drawable.block_2_theme_4_s,
       R.drawable.block_3_theme_4_s};

    public int getImage(int id) {
        return imageIDs[id + 3 * currentProfile.getTheme1()];
    }

    public int getSelectedImage(int id) {
        return imageSelIDs[id + 3 * currentProfile.getTheme1()];
    }
}
